import Vue from "vue";
//引入路由
import VueRouter from "vue-router";
//将router加入Vue构造函数中
Vue.use(VueRouter);

//引入路由组件
import Home from '@/components/content/home/home';
import Youxuan1 from "@/components/content/optimization/youxuan1";
import Global from '@/components/content/global/global';
import Cart1 from '@/components/content/cart/cart1';
//import Cart2 from '@/components/content/cart/cart2';
import Mine from '@/components/content/mine/mine';


export default new VueRouter({
	routes: [
		{
			path:"/home",
			component : Home,
			
		},
		{
			path:'/youxuan1',
			component :Youxuan1,
		},
		{
			path:'/global',
			component : Global,
		},
	
		{
			path:"/cart1",
			component : Cart1,
		},
//		{
//			path:'/cart2',
//			component : Cart2,
//		},
		{
			path:"/mine",
			component : Mine,
		},
		{
			path:"/",
			redirect:"/home"
		}
	]
})



